import 'package:flutter/material.dart';
import 'package:flutter_ohos_test1/pages/camera_page.dart';
import 'package:flutter_ohos_test1/pages/input_page.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter 登录示例',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      // home: const InputPage(),
      routes: {
        '/':(context)=>const InputPage(),
        '/camera':(context)=>const CameraPage()
      },
    );
  }
}
